package com.econ.powercloud.ems.util;

/**
 * 缓存key常量
 *
 * @author ben
 * @since 2022/11/22
 */
public class CacheKeyUtils {

    private CacheKeyUtils() {
    }

    public static final String PREFIX = "iot-platform:";

    /**
     * 监控数据
     */
    private static final String MONITOR_DATA_KEY = PREFIX + "monitor-data:%s";

    /**
     * 获取到实时监控数据key
     * @param category
     * @return
     */
    public static String getMonitorDataKey(String category) {
        return String.format(MONITOR_DATA_KEY, category);
    }


}
